﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace ShapeDemo
{
    /// <summary>
    /// 用于标识当前编辑的是哪一个层
    /// </summary>
    public enum ECanvas { View, Polyline, Polygon, Point, Rect, Ellipse }
    
    //public class DrawingFactory
    //{
    //    //public IShapeDrawer shapeDrawer;
        
    //    public DrawingFactory()
    //    { }

    //    public static void Draw(Canvas canvasContent, List<ASPNETX_Shape> shapeList, UserControl WinProp, ECanvas canvasType)
    //    {
    //        switch (canvasType)
    //        { 
    //            case ECanvas.Polygon:
    //                PolygonDrawer pDrawer = new PolygonDrawer();
    //                List<ASPNETX_Polygon> lstPolygon = new List<ASPNETX_Polygon>();
    //                foreach (ASPNETX_Shape item in shapeList)
    //                {
    //                    lstPolygon.Add((ASPNETX_Polygon)item);
    //                }
    //                pDrawer.Draw(canvasContent, lstPolygon, WinProp);
    //                break;

    //        }
    //    }
    //}
}
